import React from 'react'
import { useNavigate } from 'react-router-dom';
import './index.css'
import errorimg from '../../static/img/Search and Particulars/error.png'
export default function Error() {
    const navigate = useNavigate()
    function returnhome(){
        navigate('/' )
    }
    function previouspage(){
        window.history.back(-1)
    }
    return (
       
        <div >
            <div className="errormain">
            <img src={errorimg} alt="" />
            <div className="previouspage" onClick={previouspage}>返回上一页 </div>
            <div className="previouspage2" onClick={returnhome} > 返回首页 </div>
            </div>
        </div>
    )
}
